#!/bin/sh

case $2 in
POST-INSTALL)
	/bin/mkdir /var/lib/polkit-1
	/bin/chmod 4755 ${PKG_PREFIX}/bin/pkexec
	/bin/chmod 4755 ${PKG_PREFIX}/lib/polkit-1/polkit-agent-helper-1
	/usr/sbin/chown -R polkit:polkit /var/lib/polkit-1
	/usr/sbin/chown -R polkit ${PKG_PREFIX}/etc/polkit-1/rules.d
	/usr/sbin/chown -R polkit ${PKG_PREFIX}/share/polkit-1/rules.d
	exit 0
	;;
esac
